module.exports = {
    devServer: {
        port: 8888,
        host: 'localhost',
        https: false,
        open: true,
        proxy: {
            [process.env.VUE_APP_BASE_API]: {
                target: process.env.VUE_APP_SERVICE_URI, //代理访问地址
                changeOrigin: true, //开启代理服务器
                pathRewrite: {
                    ['^' + process.env.VUE_APP_BASE_API]: '', //将url中的dev-api替换为‘’
                }
            }
        }
    },

    lintOnSave: false,
    productionSourceMap: false
}